package com.yanqu.road.entity.enums.activity.pawnshop;

/**
 * 当铺事件类型
 */
public enum ePawnshopEventType {

	Sell("售卖事件", 1), 
	Buy("购买事件", 2), 
	Hock("典当事件", 3), 
	Money("送钱事件", 4), 
	Gemstone("赌石事件", 5),
	;

	private String name;
	private int intValue;

	ePawnshopEventType(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static ePawnshopEventType forValue(int value) {
		for (ePawnshopEventType type : ePawnshopEventType.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
